package com.sdy.healthcode.biz.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 楼宇&楼层信息
 * </p>
 *
 * @author hyh
 * @since 2020-03-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class BulidingFloorInfo extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    private Integer id;

    /**
     * 父id
     */
    private Integer parentId;

    /**
     * 科室名称
     */
    private String name;

    @TableField(exist = false)
    private List<BulidingFloorInfo> children = new ArrayList<>();

    @TableField(exist = false)
    private Boolean show = true;

}
